package com.ruifu.pls.entity;

/**
 * BasSkuPharmapprovalnoId entity. @author MyEclipse Persistence Tools
 */

public class BasSkuPharmapprovalnoId implements java.io.Serializable {

	// Fields

	private String customerid;
	private String sku;
	private String approvalno;

	// Constructors

	/** default constructor */
	public BasSkuPharmapprovalnoId() {
	}

	/** full constructor */
	public BasSkuPharmapprovalnoId(String customerid, String sku,
			String approvalno) {
		this.customerid = customerid;
		this.sku = sku;
		this.approvalno = approvalno;
	}

	// Property accessors

	//@Column(name = "CUSTOMERID", nullable = false, length = 30)
	public String getCustomerid() {
		return this.customerid;
	}

	public void setCustomerid(String customerid) {
		this.customerid = customerid;
	}

	//@Column(name = "SKU", nullable = false, length = 400)
	public String getSku() {
		return this.sku;
	}

	public void setSku(String sku) {
		this.sku = sku;
	}

	//@Column(name = "APPROVALNO", nullable = false, length = 50)
	public String getApprovalno() {
		return this.approvalno;
	}

	public void setApprovalno(String approvalno) {
		this.approvalno = approvalno;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof BasSkuPharmapprovalnoId))
			return false;
		BasSkuPharmapprovalnoId castOther = (BasSkuPharmapprovalnoId) other;

		return ((this.getCustomerid() == castOther.getCustomerid()) || (this
				.getCustomerid() != null && castOther.getCustomerid() != null && this
				.getCustomerid().equals(castOther.getCustomerid())))
				&& ((this.getSku() == castOther.getSku()) || (this.getSku() != null
						&& castOther.getSku() != null && this.getSku().equals(
						castOther.getSku())))
				&& ((this.getApprovalno() == castOther.getApprovalno()) || (this
						.getApprovalno() != null
						&& castOther.getApprovalno() != null && this
						.getApprovalno().equals(castOther.getApprovalno())));
	}

	public int hashCode() {
		int result = 17;

		result = 37
				* result
				+ (getCustomerid() == null ? 0 : this.getCustomerid()
						.hashCode());
		result = 37 * result
				+ (getSku() == null ? 0 : this.getSku().hashCode());
		result = 37
				* result
				+ (getApprovalno() == null ? 0 : this.getApprovalno()
						.hashCode());
		return result;
	}

}